package Collection;

import java.util.LinkedHashSet;

/*
    LinkedHashSet为HashSet的子类，仅仅只是让元素变得有序
 */
public class LinkedHashSetDemo {
    public static void main(String[] args) {
        LinkedHashSet linkedHashSet=new LinkedHashSet();
        linkedHashSet.add(true);
        linkedHashSet.add("a");
        System.out.println(linkedHashSet);
    }
}
